using System;
using System.Collections.Generic;
using System.Text;
using DLL.Essences;
using System.Data;
using System.Data.OleDb;
using Dll;

namespace DLL.DAL
{
    public class SystemUserDAL
    {
        public static SystemUser GetSystemUser()
        {SystemUser SU = new SystemUser();
        return SU;

            DateTime DT = DateTime.Now;
            DataTable dt = new DataTable();
            //OleDbConnection connect = new OleDbConnection(ConfigurationManager.ConnectionStrings["base"].ConnectionString);
            OleDbConnection connect = BasePath.connect;
            OleDbCommand command = new OleDbCommand();
            command.Connection = connect;
            command.CommandText = "select * from systemUser";
            OleDbDataAdapter adapter = new OleDbDataAdapter(command);
            adapter.Fill(dt);
            DataTableReader dr = dt.CreateDataReader();
            if (dr.Read())
            {
                SU.Code = dr.GetValue(0).ToString();
                SU.UserInfo = dr.GetValue(1).ToString();
            }
            return SU;
        }
    }
}
